#!/bin/sh

sudo apt update

sudo apt install -y make gcc g++ openssl libssl-dev ssh autoconf;
sudo apt install -y vim git tmux curl;


#erlang
sudo apt install -y libncurses-dev libwxgtk3.0-dev m4;
wget https://github.com/erlang/otp/archive/OTP-21.0.tar.gz
tar -zxf otp-OTP-21.0.tar.gz
cd otp-OTP-21.0
./otp_build autoconf
./configure --enable-native-libs
make
sudo make install

#chrome
#sudo apt install -y chromium-browser;


#nginx
sudo apt install -y libpcre3-dev
./configure --with-http_ssl_module
make
sudo make install



#mysql
wget http://https//dev.mysql.com/downloads/file/?id=477124
sudo dpkg -i mysql-apt-config_0.8.6-1_all.deb
 
# 安装成功后， 提示选择版本， ubuntu18.04 默认安装8.0 &nbsp;所以这里选择 8.0 &nbsp;点击 ok
sudo apt update
sudo apt install mysql-server 

systemctl mysql start

mysql -uroot -p



#
sudo vim /etc/sysctl.conf
fs.inotify.max_user_watches=16384

ulimit -n 8192
